
%Used to plot pressure in the impedance only portion of code, where the
%variable names are slightly different

%plot pressure frequency data
axes(handles.axes13)
plot(0:length(P_Harmonics(:,2))-1,P_Harmonics(:,2), '-o')
xlabel('Harmonic')
ylabel('Modulus (dynes/cm^2)')
title('Pressure Moduli')

%plot pressure waveform data
axes(handles.axes15)
plot(t_P,ydata_P,'-b','LineWidth',2)
hold on
plot(z1_P,y_P,'-*r','LineWidth',2)
xlabel('Time');ylabel('Pressure Magnitude (dynes/cm^2)')
hold on
inv_Y=ifftn(Yfft_P);
ninv=L_P-1;Tp_P=Tp_P -delta_t_P;
plot(0:Tp_P/ninv:(ninv-1)*Tp_P/ninv,inv_Y(1:floor(L_P-1)),'*k')
title('Input Pressure Wave: Fourier Expansion')
hold off